package com.jrx.anytxn.transaction.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *  欠款明细bean
 * @author  haopu.zheng
 * date  2019/8/6
 **/
public class DebtDetailBean implements Serializable {
    /**
     * 期数
     */
    private Integer tenor;
    /**
     * 本金金额
     */
    private BigDecimal principalAmount= BigDecimal.ZERO;
    /**
     * 利息金额
     */
    private BigDecimal interestAmount= BigDecimal.ZERO;
    /**
     * 罚息金额
     */
    private BigDecimal penaltyAmount= BigDecimal.ZERO;
    /**
     * 罚息复利
     */
    private BigDecimal compountAmount = BigDecimal.ZERO;
    /**
     * 费用金额
     */
    private BigDecimal feeAmount= BigDecimal.ZERO;

    public Integer getTenor() {
        return tenor;
    }

    public void setTenor(Integer tenor) {
        this.tenor = tenor;
    }

    public BigDecimal getPrincipalAmount() {
        return principalAmount;
    }

    public void setPrincipalAmount(BigDecimal principalAmount) {
        this.principalAmount = principalAmount;
    }

    public BigDecimal getInterestAmount() {
        return interestAmount;
    }

    public void setInterestAmount(BigDecimal interestAmount) {
        this.interestAmount = interestAmount;
    }

    public BigDecimal getPenaltyAmount() {
        return penaltyAmount;
    }

    public void setPenaltyAmount(BigDecimal penaltyAmount) {
        this.penaltyAmount = penaltyAmount;
    }

    public BigDecimal getFeeAmount() {
        return feeAmount;
    }

    public void setFeeAmount(BigDecimal feeAmount) {
        this.feeAmount = feeAmount;
    }

    public BigDecimal getTotalAmount() {
        return principalAmount.add(interestAmount).add(penaltyAmount).add(feeAmount);
    }

    public BigDecimal getCompountAmount() {
        return compountAmount;
    }

    public void setCompountAmount(BigDecimal compountAmount) {
        this.compountAmount = compountAmount;
    }
}
